package com.easy.bean;

import lombok.Data;

@Data
public class UserAccount {
    //用户账号表
    private Integer id;
    private String username;
    private String password;        // 前端传的明文密码
    private String password_hash;   // 数据库存储的加密密码
    private Integer employee_id;
    private String role;
    private Byte status;
    private Byte is_deleted;
    private String email;


    // 手动添加getter和setter方法，确保编译通过
    public Integer getId() {
        return id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    public String getUsername() {
        return username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    public String getPassword() {
        return password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    public String getPassword_hash() {
        return password_hash;
    }
    
    public void setPassword_hash(String password_hash) {
        this.password_hash = password_hash;
    }
    
    public Integer getEmployee_id() {
        return employee_id;
    }
    
    public void setEmployee_id(Integer employee_id) {
        this.employee_id = employee_id;
    }
    
    public String getRole() {
        return role;
    }
    
    public void setRole(String role) {
        this.role = role;
    }
    
    public Byte getStatus() {
        return status;
    }
    
    public void setStatus(Byte status) {
        this.status = status;
    }
    
    public Byte getIs_deleted() {
        return is_deleted;
    }
    
    public void setIs_deleted(Byte is_deleted) {
        this.is_deleted = is_deleted;
    }
    
    public String getEmail() {
        return email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
}